package com.dz.lm.common.dto;


import com.github.pagehelper.PageInfo;

import java.util.List;

public class PageDto<T>{
    private int page =0;
    private long total=0;
    private List<T> list;
    private int count = 0;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
    public void setInfo(PageInfo info){
        this.page = info.getPages();
        this.total = info.getTotal();
    }
}
